package com.yangcheng.service;

import com.yangcheng.model.ResponseDate.StaticticsBo;
import com.yangcheng.model.domain.Article;
import com.yangcheng.model.domain.Comment;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ISiteService {
    //最新收到评论
    public List<Comment> recentComments(int count);
    //最新发表的文章
    public List<Article> recentArticles(int count);
    //获取后台统计数据
    public StaticticsBo getStatistics();
    //更新某个文章的统计数据
    public void updateStatistics(Article article);

}
